package com.vates.practico7;

import java.sql.DriverManager;
import java.sql.SQLException;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Hello world!
 * 
 */
public class App {
	public static void main(String[] args) {
		try {
			Class.forName("org.hsqldb.jdbcDriver");
			java.sql.Connection c = DriverManager.getConnection(
					"jdbc:hsqldb:mem:testdb", "sa", "");
			EntityManagerFactory emf = Persistence
					.createEntityManagerFactory("customerManager");
			EntityManager em = emf.createEntityManager();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
}
